<?php

 require_once 'Tabla.php';

 class ExamenesReserva extends Tabla
 {
     protected static $tabla = 'examenes_reserva';
     private static $instancia = null;

     static public function getInstancia($id, $debug = false)
     {

         if (!self::$instancia instanceof self)
         {
             self::$instancia = new self;
             parent::$id = $id;
             parent::$tabla = strtolower(self::$tabla);
             parent::$debug = $debug;
             self::$instancia->init(self::$id, parent::$debug);
         }
         parent::$id = $id;
         parent::$debug = $debug;
         parent::$tabla = strtolower(self::$tabla);
         self::$instancia->init($id, parent::$debug);
         return self::$instancia;
     }
     protected function init($id, $debug)
     {
         parent::$tabla = strtolower(self::$tabla);
         parent::init($id, $debug);
     }

     public function DatosArray()
     {
         return parent::ArrayDatos();

     }
     public function Id($indice = 0)
     {
         return parent::$data[$indice]["res_id"] . parent::$data[$indice]["tia_id"] .
             parent::$data[$indice]["rec_id"] . parent::$data[$indice]["exres_fecha"] .
             parent::$data[$indice]["exres_hora"] . parent::$data[$indice]["ex_codigo"];

     }

 }

?>